<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP8!';
});
//读取缓存
Route::get('/','app\custom\Index@index');

//二级域名时改用版本号
Route::group("admin", function () {
    Route::group("user", function () {
        Route::get("index", "user/index");
        // Route::get("hello", "user/hello");
    })->namespace("app\admin\user");
    Route::group("system", function () {
        Route::get("menu", "menu/index");
        // Route::get("hello", "system/hello");
    })->namespace("app\admin\system");
    // Route::group("attachment", function () {
    //     Route::get("index", "index/index");
    //     Route::get("hello", "index/hello");
    // })->namespace("app\admin");
});

